<html> 
<head>
<script src="skulpt.min.js" type="text/javascript"></script> 
</head> 

<body> 
<textarea id="pythonCode">
for i in range(10):
    print i
</textarea><br /> 
<pre id="output"></pre> 

<script type="text/javascript"> 
function outf(text) { 
    var mypre = document.getElementById("output"); 
    mypre.innerHTML = mypre.innerHTML + text; 
} 

var code = document.getElementById("pythonCode").value; 
Sk.configure({output:outf}); 
eval(Sk.importMainWithBody("<stdin>",false,code)); 
</script> 

</body> 
</html> 
